angular.module('payPcApp')
    .factory('booksearch_model', ['$http', 'AppConfig', '$location', function($http, AppConfig, $location) {

        var getdata = function(param) {
            var url = AppConfig.WEB_ROOT + 'book/selectByCho/' + param.type + '/' + param.condition + '/' + param.pageindex + '/10';
            return $http.get(url, null, {

            });
        };
        var getdata_isbn = function(param) {
            var url = AppConfig.WEB_ROOT + 'book/selectByISBN/' + param.isbn;
            return $http.get(url, null, {

            });
        }
        return {
            getdata: getdata,
            getdata_isbn: getdata_isbn
        };
    }])